package com.huanletao.dom4j.pojo;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.StringJoiner;

/**
 * <p>
 *
 * </p>
 *
 * @package: com.huanletao.dom4j.pojo
 * @Description:
 * @className: Address
 * @author: @NNCSKJ ADMIN
 * @copyright: Copyright (c) 2022/8/1 14:23
 * @version: V1.0
 */
@XmlRootElement(name = "address")
public class Address {

    @XmlElement(name = "code")
    private Integer code;
    @XmlElement(name = "name")
    private String name;
    @XmlElement(name = "netWorkInfo")
    private NetWorkInfo netWorkInfo;


    public NetWorkInfo getNetWorkInfo() {
        return netWorkInfo;
    }

    public void setNetWorkInfo(NetWorkInfo netWorkInfo) {
        this.netWorkInfo = netWorkInfo;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Address.class.getSimpleName() + "[", "]")
                .add("code=" + code)
                .add("name='" + name + "'")
                .add("netWorkInfo=" + netWorkInfo)
                .toString();
    }
}
